package com.demo.mybatis_plus.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
// 驼峰命名法
@TableName("pet_userinfo") // 表名
public class Userinfo {
    @TableId(type = IdType.AUTO) // 主键 类型为自动递增
    private Integer id;
    private String name;
    private String phone;
    private String gender;
    private Date createTime;
    private Date updateTime;
}
